package com.kzx.zijiceshi;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class X implements BeanDefinitionRegistryPostProcessor, Ordered {

	public X() {
		System.out.println("X的构造被调用。。。");
	}

	@Override
	public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
		System.out.println("X的postProcessBeanDefinitionRegistry方法被调用。。。");
	}

	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("X的postProcessBeanFactory方法被调用。。。");

	}

	@Override
	public int getOrder() {
		System.out.println("X的getOrder方法被调用。。。");

		return 0;
	}
}
